package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备-联络灯类型关联表
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "设备-联络灯类型关联表")
@Data
@Accessors(chain = true)
@TableName(value = "device_lamp_type")
public class DeviceLampType extends PublicPo implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Long id;

    /**
     * 设备id(device_info表id)
     */
    @TableField(value = "device_id")
    @ApiModelProperty(value = "设备id(device_info表id)")
    private Long deviceId;

    /**
     * 联络灯类型表id
     */
    @TableField(value = "lamp_type_id")
    @ApiModelProperty(value = "联络灯类型表id")
    private Long lampTypeId;

    /**
     * 通知人员(user表id,多个以,号隔开)
     */
    @TableField(value = "info_user",updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "通知人员(user表id,多个以,号隔开)")
    private String infoUser;

    /**
     * 通知人员名称(多个以,号隔开)
     */
    @TableField(value = "info_user_name",updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "通知人员名称(多个以,号隔开)", hidden = true)
    private String infoUserName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    /**
     * 创建人(user表id)
     */
    @TableField(value = "create_user")
    @ApiModelProperty(value = "创建人(user表id)", hidden = true)
    private Integer createUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间", hidden = true)
    private Date updateTime;

    /**
     * 更新人(user表id)
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value = "更新人(user表id)", hidden = true)
    private Integer updateUser;

    /**
     * 联络灯类型名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "联络灯类型名称")
    private String lampTypeName;



    private static final long serialVersionUID = 1L;
}